<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "etc_seller_tiktok_product_edit".
 *
 * @property int $id
 * @property int|null $goods_id ql_user_tiktok_product_goods.id
 * @property int|null $user_id 商家id sys_adminuser.id
 * @property string|null $seller_info 产品卖点
 * @property string|null $use_info 使用场景
 * @property string|null $video_info 爆款视频链接，换行
 */
class EtcSellerTiktokProductEdit extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'etc_seller_tiktok_product_edit';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['goods_id', 'user_id'], 'integer'],
            [['seller_info', 'use_info', 'video_info'], 'string'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'goods_id' => Yii::t('app', 'ql_user_tiktok_product_goods.id'),
            'user_id' => Yii::t('app', '商家id sys_adminuser.id'),
            'seller_info' => Yii::t('app', '产品卖点'),
            'use_info' => Yii::t('app', '使用场景'),
            'video_info' => Yii::t('app', '爆款视频链接，换行'),
        ];
    }
}
